import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    count: 0
  },
  getters: {},
  mutations: {
    jiaM(state) {
      state.count++;
    },
    jianM(state) {
      state.count--;
    }
  },
  actions: {
    jiaA(content) { //上下文
      content.commit('jiaM');
    }
  },
  modules: {}
})
